2000-01-22 Federico Mena Quintero <federico@helixcode.com>
+ * gdk-pixbuf/io-pnm.c (pnm_read_raw_scanline): Return an error on
+ invalid pnm type.
+ (pnm_read_ascii_scanline): Initialize data and mask.
+
+ * gdk-pixbuf/io-xpm.c (pixbuf_create_from_xpm): Initialize
+ fallbackcolor to keep gcc happy.
+
* configure.in: Bumped version number to 0.5.0.
* gdk-pixbuf/pixops/timescale.c (dump_array): Removed unused variable.
default:
g_warning ("io-pnm.c: Illegal raw pnm type!\n");
return PNM_FATAL_ERR;
- break;
}
numpix = MIN (numpix, context->width - context->output_col);
break;
default:
g_warning ("io-pnm.c: Illegal raw pnm type!\n");
- break;
+ return PNM_FATAL_ERR;
}
memcpy (context->dptr + offset, inbuf->next_byte, numbytes);
g_return_val_if_fail (context != NULL, PNM_FATAL_ERR);
+ data = mask = 0;
+
inbuf = &context->inbuf;
context->dptr = context->pixels +
_XPMColor *colors, *color, *fallbackcolor;
guchar *pixels, *pixtmp;
+ fallbackcolor = NULL;
+
buffer = (*get_buf) (op_header, handle);
if (!buffer) {
g_warning ("No XPM header found");